
g_menu = [

[6.95, ['Deep Oil Fried Prawns (8)'], ],
[6.75, ['Sliced Barbecued Pork'], ],
[6.50, ['Fried Chicken Wings (8)'], ],
[3.95, ['Egg Rolls (3)'], ],
[4.25, ['Steamed Pork Buns (3)'], ],
[3.25, ['Fried Wonton Wrappers'], ],
[5.25, ['Pot Stickers Pan Fried (6)', 'Pot Stickers Deep Fried (8)'], ],
[5.00, ['Green Onion Cake'], ],
[6.25, ['Crab Meat Rangoons (8)'], ],
[6.95, ['Fried Calamari'], ],
[6.75, ['Honey Barbecued Spareribs'], ],
[5.95, ['Steamed Dumpling'], ],
[6.95, ['Chinese Chicken Salad'], ],
[8.95, ['Assorted Appetizers'], ],


[8.95, ['Seafood Soup'], ],
[6.95, ['House Dumpling Soup'], ],
[6.50, ['West Lake Beef Soup'], ],
[6.50, ['Hot & Sour Soup w/ Chicken'], ],
[7.25, ['Sizzling Rice Soup'], ],
[6.95, ['Crab Meat with Corn Soup'], ],
[6.50, ['Seaweed with Tofu Soup'], ],
[6.95, ['Tomato Egg Flower Soup'], ],
[6.95, ['Chicken Egg Flower with Corn Soup'], ],
[7.25, ['Shrimp Wonton Soup'], ],
[7.25, ['Wor Wonton Soup'], ],



[8.25, ['Garlic Chicken'], ],
[8.25, ['Cashew Chicken'], ],
[8.50, ['String Bean with Chicken (white meat)'], ],
[8.50, ['Eggplant with Chicken (white meat)'], ],
[8.50, ['Sesame Chicken'], ],
[None, ['Asparagus Chicken with Black Bean Sauce'], ],
[8.25, ['Sweet & Sour Chicken'], ],
[8.50, ['Fresh Mushroom Fried Tofu with Chicken (white meat)'], ],
[8.50, ['Lemon Chicken'], ],
[8.50, ['Mango Chicken'], ],
[8.50, ['Spiced Chicken with Orange Peel'], ],
[8.25, ['Kung Pao Chicken (spicy)'], ],
[8.25, ['Chicken With Curry Sauce'], ],
[8.25, ['Chicken With Broccoli'], ],
[8.25, ['Mongolian Chicken'], ],
[8.25, ['Chicken With Black Bean Sauce'], ],
[8.25, ['Chicken With Garden Vegetable'], ],
[8.50, ['Spicy Garlic Chicken Wings'], ],
[8.50, ['Salt and Pepper Chicken Wings'], ],
[8.25, ['Hunan Chicken'], ],
[8.50, ['General Tsao\'s Chicken'], ],
[13.95, ['Roast Chicken (half)'], ],


[9.75, ['Lemon Prawns'], ],
[9.95, ['Fresh Mushroom Fried Tofu with Prawns'], ],
[11.95, ['Honey Walnut Prawns'], ],
[9.50, ['Cashew Prawns'], ],
[9.50, ['Snow Peas with Prawns'], ],
[9.95, ['Sauteed Scallops & Prawns'], ],
[9.50, ['Prawns with Broccoli'], ],
[9.95, ['Salt & Pepper Prawns'], ],
[9.50, ['Egg Plant with Prawns'], ],
[9.50, ['Prawns with Mixed Vegetables'], ],
[9.50, ['Prawns with Lobster Sauce'], ],
[9.50, ['Prawns with Pineapples (sweet & sour)'], ],
[9.50, ['Kung Pao Prawns'], ],
[9.50, ['Hot Spicy Prawns'], ],
[9.95, ['Scrambled Egg with Prawns'], ],
[9.95, ['Szechuan Prawns'], ],
[9.50, ['Prawns with String Bean'], ],
[9.50, ['Mongolian Prawns'], ],
[9.50, ['Prawns with Mango'], ],
[9.50, ['Prawns with Curry Sauce'], ],
[9.50, ['Spicy Garlic Calamari'], ],
[9.75, ['Salt & Pepper Calamari'], ],

[9.50, ['Deep Fried Rock Cod Fish Fillet w/ Black Bean Sauce'], ],

[None, ['Asparagus with Fish Fillet'], ],
[9.50, ['Sauteed Rock Fish Fillet with Bok Choy'], ],
[9.50, ['Sweet & sour Fish Fillet'], ],
[9.75, ['Salt & Pepper Fillet of Flounder Fish (dry)'], ],
[9.75, ['Szechuan Fish'], ],
[9.50, ['Hunan Fish'], ],
[9.50, ['Fish in Black Bean Sauce'], ],
[9.95, ['Combination Seafood in Clay Pot'], ],
[9.95, ['Triple Crowns with Scallions'], ],
[10.95, ['Combo Delight'], ],
[10.95, ['Phoenix and Dragon'], ],
[11.95, ['Ocean Garden'], ],


[11.95, ['Egg Foo Yung with Prawn'], ],
[9.95, ['Egg Foo Yung with B.B.Q Pork'], ],
[9.95, ['Egg Foo Yung with Chicken'], ],
[9.95, ['Egg Foo Yung with Beef'], ],
[8.95, ['Egg Foo Yung with Vegetable'], ],
[11.95, ['Egg Foo Yung Combination'], ],


[None, ['Asparagus with Beef in Black Bean Sauce'], ],
[8.50, ['Beef with Oyster Sauce'], ],
[8.50, ['Mongolian Beef'], ],
[8.50, ['Fresh Mushroom With Beef & Tofu'], ],
[8.50, ['String Bean with Beef'], ],
[8.50, ['EggPlant with Beef'], ],
[8.75, ['Spicy Beef with Orange Peel'], ],
[8.50, ['Beef with Broccoli'], ],
[8.50, ['Beef with Curry Sauce'], ],
[8.50, ['Green Onion Beef'], ],
[8.50, ['Beef with Mango'], ],
[8.50, ['Beef with Tomato'], ],
[8.50, ['Beef with Tofu'], ],

[8.75, ['Szechuan Beef'], ],
[8.75, ['Scrambled Egg with Beef'], ],


[9.25, ['Black Pepper with Short Ribs'], ],
[9.25, ['Salt & Pepper with Short Ribs'], ],
[8.50, ['Hot and Spicy Shredded Pork'], ],
[8.75, ['Peking Sauce Pork Chop'], ],
[8.75, ['Salt & Pepper Port Chop'], ],
[8.25, ['Peking Pork Spareribs'], ],
[8.25, ['Salted & Pepper Spareribs'], ],
[8.25, ['Spareribs with Black Bean Sauce'], ],
[8.25, ['Twice Cooked Pork'], ],
[8.25, ['Sweet & Sour Pork'], ],
[8.95, ['Mixed Meat & Vegetables w/Tofu in Clay Pot'], ],

[8.25, ['Mu Shu Pork'], ],
[8.25, ['Mu Shu Chicken'], ],
[8.25, ['Mu Shu Vegetable'], ],
[9.25, ['Mu Shu Shrimps'], ],

[7.00, ['Mixed Vegetables Combination'], ],
[7.00, ['Broccoli with Oyster Sauce'], ],
[7.00, ['Eggplant with Garlic & Spicy Sauce'], ],
[7.50, ['Braised Tofu with Mushroom'], ],
[7.50, ['Eggplant with Fried Tofu'], ],
[7.50, ['String Bean with Fried Tofu'], ],
[7.50, ['Fresh Mushroom with Fried Tofu'], ],
[7.50, ['Soft Tofu with Mixed Mushroom'], ],
[7.50, ['Snow Peas with Fried Tofu'], ],
[7.00, ['Mapo Tofu'], ],
[7.50, ['Black Mushroom, Water Chestnuts, Snow Peas'], ],
[7.50, ['String Bean with Hunan Sauce'], ],

[7.75, ['King Lee\'s Veggie'], ],
[7.50, ['Tofu Broccoli in hot Garlic Sauce'], ],
[7.50, ['Tofu Broccoli in Black Bean Sauce'], ],
[7.00, ['Salt & Pepper Tofu'], ],
[7.00, ['Sauteed Broccoli with Garlic Sauce'], ],
[7.00, ['Kung Pao Tofu'], ],
[7.50, ['Sauteed Chinese Tender Greens w/Black Mushroom'], ],
[None, ['Seasonal Vegetables'], ],


[6.50, ['B.B.Q Pork Fried Rice', 'Chicken Fried Rice', 'Beef Fried Rice'], ],
[8.25, ['Combination Seafood Fried Rice'], ],
[7.25, ['Young-Chow Fried Rice'], ],
[7.25, ['Shrimp Fried Rice'], ],
[7.25, ['Combination Fried Rice'], ],
[6.50, ['Veggie Fried Rice'], ],
[7.25, ['Tomato Beef Chow Mein'], ],
[6.50, ['Veggie Chow Mein'], ],
[6.50, ['B.B.Q. Pork Chow Mein', 'Chicken Chow Mein', 'Beef Chow Mein'], ],
[7.25, ['Special Chow Mein'], ],
[7.50, ['Vegetable Prawns Chow Mein'], ],
[7.50, ['Combination Chow Fun'], ],
[7.50, ['Shrimps Chow Fun'], ],
[7.25, ['Beef Chow Fun Dry', 'Beef Chow Fun W/sauce'], ],
[7.25, ['Tender Greens with Chicken Chow Mein'], ],
[7.75, ['Singapore Fried Rice Noodles'], ],
[7.75, ['Shredded Duck Fried Rice Noodles'], ],
[6.50, ['Soy Sauce Chow Mein'], ],
[9.25, ['Fujian Pan Fried Rice Noodle'], ],
[8.75, ['Combination Pan Fried Noodle'], ],
[9.25, ['Combination Seafood Pan Fried Noodle'], ],
[1.50, ['Steamed Rice (per person)'], ],









[6.00, ['Vegetarian Hot & Sour Soup'], ],
[6.00, ['Mustard Green with Bean Cake Soup'], ],
[6.00, ['Vegetarian West Lake Beef Soup'], ],
[6.00, ['Vegetarian Seaweed with Tofu Soup'], ],

[8.75, ['Vegetarian Sweet & Sour Chicken'], ],
[8.75, ['Vegetarian General Chicken'], ],
[8.75, ['Vegetarian Sesame Chicken'], ],
[8.75, ['Vegetarian Hunan Chicken'], ],
[8.75, ['Vegetarian Lemon Chicken'], ],
[8.75, ['Fresh Mushroom & vegetarian Chicken'], ],
[8.75, ['Vegetarian Cashew Nut Chicken'], ],
[8.75, ['Vegetarian Eggplant w/ Chicken'], ],
[8.75, ['Hot Garlic Vegetarian Chicken'], ],
[8.75, ['Vegetarian Kung Pao Chicken'], ],


[6.95, ['Salt & Pepper Chicken Wings'], ],
[6.75, ['Curry Beef / Chicken Rice'], ],
[6.75, ['General Tsao\'s Chicken'], ],
[6.75, ['Black Pepper Beef / Chicken'], ],
[6.75, ['Kung Pao Chicken'], ],
[6.75, ['Mango Beef / Chicken'], ],
[6.75, ['Assorted Vegetable Beef / Chicken'], ],
[6.75, ['Garlic Chicken'], ],
[7.50, ['Roast Duck'], ],
[6.75, ['Mongolian Beef / Chicken'], ],
[6.75, ['Broccoli Beef / Chicken'], ],
[6.75, ['String Bean Beef / Chicken'], ],
[6.75, ['Tofu Beef / Chicken'], ],
[6.75, ['Tomato Beef / Chicken'], ],
[6.95, ['Scrambled Egg with Beef'], ],
[7.50, ['Scrambled Egg with Shrimp'], ],
[7.50, ['Mandrain Spicy Eggplant with Shrimp & Chicken'], ],
[7.25, ['Kung Pao Prawns'], ],
[7.25, ['Assorted Vegetable Prawns'], ],
[7.25, ['Hunan Fish'], ],
[6.75, ['Sweet & Sour Pork / Chicken'], ],
[6.75, ['B.B.Q. Pork with Vegetables'], ],
[6.95, ['Salt & Pepper Pork Chop'], ],
[6.50, ['Vegetarian Delight'], ],
[6.50, ['Garlic Eggplant'], ],
[6.50, ['Sauteed String Bean'], ],
[6.50, ['Vegetarian Kung Pao with Tofu'], ],
[6.75, ['Bitter Melon Chicken / Beef'], ],
[7.25, ['Rock Cod with Black Bean Sauce'], ],
[6.95, ['Orange Chicken / Sesame Chicken'], ],
[6.95, ['Salted & Pepper Spareribs'], ],


[20.00, ['Spring Roll (25pcs)'], ],
[25.00, ['Fried Chicken Wings (30pcs)'], ],
[21.95, ['B.B.Q. Pork Chow Mein(5LBS)', 'Chicken Chow Mein(5LBS)', 'B.B.Q. Pork Fried Rice(5LBS)', 'Chicken Fried Rice(5LBS)'], ],
[30.95, ['Sesame Seed Chicken (5LBS)', 'Orange Flavor Chicken (5LBS)'], ],
[30.95, ['Broccoli Beef (5LBS)'], ],
[35.00, ['Prawn with String Bean (5LBS)'], ],

[1.25, ['Soft Drink'], ],
[1.25, ['Bottle Water'], ],

]
#print len(g_menu)

g_cate = [
    [ ['Appetizers'], [1, 14] ],
    [ ['Soup'], [15, 26] ],
    [ ['Chicken & Duck'], [27, 47] ],
    [ ['Seafood'], [48, 82] ],
    [ ['Egg Foo Yung'], [83, 88] ],
    [ ['Port & Beef'], [89, 114] ],
    [ ['Mu Shu'], [115, 118] ],
    [ ['Tofu & Vegetables'], [119, 138] ],
    [ ['Fried Rice & Chow Mein'], [139, 160] ],
    
    [ ['Vegetarian Soup'], [161, 164] ],
    [ ['Vegetarian Entree'], [165, 174] ],

    [ ['Lunch Rice Plate'], [175, 205] ],
    
    [ ['Catering Tray'], [206, 211] ],
    [ ['Drink'], [212, 213] ],
]


print "<?php"
print "$g_cate = array("
for c in g_cate:
    print ' array( array("%s"), array(%s, %s) ),' % (c[0][0], c[1][0], c[1][1])
print ');'

print "$g_menu = array("
for i in range(len(g_menu)):
    m = g_menu[i]
    
    print ' array( %s, array(%s) ), #%d' % (m[0] != None and str(m[0]) or 'null', '"'+'","'.join(m[1])+'"', i + 1)
print ');'
print "?>"


"""
import csv

wb = csv.writer( open("menu.csv", 'wb'), quoting=csv.QUOTE_ALL)
wb.writerow( ['ID', 'Category', 'Name', 'Price'] )
k = 1
for cn,cr in g_cate:
    for price,en in g_menu[ cr[0] - 1 : cr[1] ]:
        #print cn[0], en[0], price
        wb.writerow( [str(k), cn[0], en[0], price and '%0.2f' % (price, ) or 'Seasonal'] )
"""


